const Koa = require('koa')
const router = require('koa-router')()

const app = new Koa()

router.get('/', (ctx, next) => {
  ctx.body = "hello koa"
  console.log(ctx.request.query);
})

app.use(router.routes())
app.use(router.allowedMethods())

app.listen(3000, () => {
  console.log('running...');
})
